<?php
/**
 * Created by PhpStorm.
 * User: sun
 * Date: 2022/7/8
 * Time: 8:15 AM
 */
namespace app\common\listeners;

use app\common\events\content\ArticleUpdatedEvent;
use Illuminate\Contracts\Events\Dispatcher;

class ArticleUpdatedListener
{
    public function subscribe(Dispatcher $events){
        \Log::debug('ArticleUpdateListener subscribe');
        //$event->article;
    }
    public function handle(ArticleUpdatedEvent $event){
        $data = $event->getArticle();
        \Log::debug('ArticleUpdateListener $data:',$data);
    }
}